//
//  ViewController.swift
//  FramerSwift
//
//  Created by ym on 16/3/20.
//  Copyright © 2016年 ym. All rights reserved.
//

import UIKit


class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        create()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    func create(){
        let a2 = Layer(imageName: "bb")
        self.view.addSubview(a2)
        a2.userInteractionEnabled = true
        a2.heightImage = UIImage(named: "cc")
        a2.touchUpInSide = {
//            a2.x  = a2.x + 10

        }
        a2.touchDrag = {
            a2.userInteractionEnabled
        }


//        UIVisualEffectView *effectview = [[UIVisualEffectView alloc] initWithEffect:blur];
//        
//        effectview.frame = CGRectMake(0, 0, imageview.size.width/2, 300);
    }
    

}

